/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package engine;

import TransportLayer.NotaryRequestType;
import java.util.HashMap;

/**
 *
 * @author Tomasz Nowak
 */
class HandleRequestFactory
{
	static HashMap<NotaryRequestType, IRequestHandler> strategyMap = new HashMap<>();

	static void register( NotaryRequestType type, IRequestHandler handler )
	{
		strategyMap.put(type, handler);
	}

	static IRequestHandler getHandler( NotaryRequestType type )
	{
		return strategyMap.get(type);
	}
}
